<#include "/common/head.ftl">

<@showTitle title="${i18n.getMessage('userList')}">
	<a href="#" onclick="cc('user/showAddUser.sgt')">${i18n.getMessage('create_one')}</a>
</@showTitle>

<br/>

<@display.table id="listTable" name="users" sort="list" defaultsort="1" defaultorder="descending">
	<@display.column title="${i18n.getMessage('username')}" sortable="true"><#if (listTable.active)>${(listTable.username)!}<#else><span style="text-decoration: line-through">${(listTable.username)!}</span></#if></@display.column>
	<@display.column title="${i18n.getMessage('fullName')}" property="fullName" sortable="true"></@display.column>
	<@display.column title="${i18n.getMessage('email')}">${(listTable.email)!}</@display.column>
	<@display.column title="${i18n.getMessage('edit')}" style="text-align:center"><img src="images/edit.gif" onclick="cc('user/showEditUser.sgt?id=${listTable.id}')" style="cursor:pointer"/></@display.column>
	<@display.column title="${i18n.getMessage('delete')}" style="width:50px;text-align:center"><img src="images/delete.gif" onclick="if(confirm('${i18n.getMessage('dialog.delete')}')) { cc('user/deleteUser.sgt?id=${listTable.id}'); }" style="cursor:pointer"/></@display.column>
</@display.table>

<br/><br/>